<template>
  <div>
    <div>学生姓名</div>
    <div v-for="item in userlist">
      {{ item.name }}
    </div>
    <el-button @click="getStudent">点击获取学生</el-button>
  </div>
</template>

<script setup>
import { reactive, ref, toRefs, onMounted } from "vue";
import { getUsers } from "./pageServer/testServer";
const userlist = ref(null);
const getStudent = async () => {
  userlist.value = (await getUsers()).data;
};
</script>
